package com.whf.utils;

import com.whf.VO.ResultVO;

/**
 * Created by Administrator on 2018/7/12 0012.
 */
public class ResultVOUtil {
    public static ResultVO success(Object object) {
        ResultVO resultVO=new ResultVO();
        resultVO.setData(object);
        resultVO.setCode(0);
        resultVO.setMsg("成功啦");
        return resultVO;
    }
    public static ResultVO success() {
        return success(null);
    }
    public static ResultVO error(Integer code,String message) {
        ResultVO resultVO=new ResultVO();
        resultVO.setCode(code);
        resultVO.setMsg(message);
        return resultVO;
    }
}
